Documentation for class polyline

Inherits from 	polyline_object 

Properties declared in polyline 
	arrow_mode 
	linecap 

Class Methods declared in polyline 
	new(points) 

Methods declared in polyline 
	any 
		arrow_mode 
		linecap 
		set_arrow_mode(mode) 
		set_linecap(cap) 
	get 
		arrow_mode 
		linecap 
	set 
		set_arrow_mode(mode) 
		set_linecap(cap) 

Class 
#begin_class
polyline 
The class polyline is a subclass of the class polyline_object. 
A polyline is a polyline_object that is open, i.e. the last point is not connected to the first point. 
A polyline has an arrow-mode and a linecap.
#end_class

Properties 

#begin_property
arrow_mode 
Stores the arrow-mode of the polyline. The arrow-mode specifies if the polyline has an arrowhead and in which end. The arrow-modes are:
#no_arrow - no arrow on the polyline
#at_start - an arrow at the first point
#at_end - an arrow at the last point
#at_both - arrows in both ends
Default is #no_arrow.
#end_property

#begin_property
linecap 
Stores how the ends of the polyline are drawn. The different types of linecaps are:
#square
#round
Default is #square.
#end_property

Methods 

#begin_method
arrow_mode 
Returns the arrow_mode property of the polyline.
#end_method

#begin_method
linecap 
Returns the linecap property of the polyline.
#end_method

#begin_method
set_arrow_mode(mode) 
Sets the arrow_mode property to the symbol mode. 
Valid arrow-modes are:
#no_arrow - no arrow on the polyline
#at_start - an arrow at the start point
#at_end - an arrow at the end point
#at_both - arrows in both ends
Returns self.
#end_method

#begin_method
set_linecap(cap) 
Sets the linecap property to the symbol cap.
The different types of linecaps are:
#square
#round
Returns self.
#end_method

Class Methods 

#begin_class_method
new(points) 
Returns a new polyline object.
Ex:
{polyline}:new([{10 10} {10 100} {100 120}])
will create a new polyline with three points.
Note: You cannot create a polyline with less than three points.
#end_class_method